export const rules = {
    // nodeCode:[
    //     { required: true, message: '请输入层级编码', trigger: 'blur' },
    //     { min: 2, max: 20, message: '层级编码长度2-20位', trigger: 'blur' },
    //     {pattern:new RegExp(/^[0-9a-zA-Z]{2,}$/,'g'),message:"编码只允许包含字母与数字",trigger: 'blur' }
    // ],
    nodeName: [
        { required: true, message: '请输入层级名称', trigger: 'blur' },
    ],
    // nodeMark: [
    //     { required: true, message: '请输入层级标签', trigger: 'blur' },
    // ],
    // content: [
    //     { required: true, message: '请输入层级内容', trigger: 'blur' },
    //     { min: 1, max: 200, message: '层级内容1-200位', trigger: 'blur' },
    // ],
    // score: [
    //     { required: true, message: '请输入层级积分', trigger: 'blur' },
    //     { type:'number',min: 1, max: 100, message: '层级分数1-100', trigger: 'blur' },
    // ],
    leaderId: [
        { required: true, message: '请选择接单人', trigger: 'change' }
    ],
    num1: [
        { required: true, message: '请选择开始时段', trigger: 'change' }
    ],
    num3: [
        { required: true, message: '请选择结束时间', trigger: 'change' }
    ],
    // address: [
    //     { required: true, message: '请输入执行地点', trigger: 'blur' }
    // ],
}